html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 14px;
}
#app {
  width: 100%;
  height: 100%;
  background: #f4f4f4;
  /* font-size: 14px; */
}

img {
  width: 100%;
  height: 100%;
}

.my-coupon {
  overflow: hidden;
}

/* 切换tab */
.my-coupon .coupon-tab {
  display: flex;
  background: #fff;
}

.coupon-tab .tab-item {
  flex: 1;
  text-align: center;
}

.coupon-tab .tab-item .tab-title {
  line-height: 3.5rem;
  font-weight: 500;
  font-size: 1rem;
  color: #000000;
}

.coupon-tab .tab-item .tab-active {
  width: 3.5rem;
  height: 0.28rem;
  background: #ef3f44;
  margin: 0 auto;
}

/* 优惠券列表 */
.coupon-list {
  margin: 1.4rem 1rem;
}

.coupon-list .coupon-item {
  margin-bottom: 1.7rem;
  position: relative;
}

.coupon-item .item-content {
  display: flex;
  position: relative;
}

.item-active {
  color: #CDCBCB;
}


.coupon-item .item-left {
  color: #CDCBCB;
  z-index: 1;
}
.item-active .item-left{
  color: #ba0d11;
}

.item-left .coupon-price {
  width: 8rem;
  height: 1.7rem;
  font-family: PingFang SC;
  font-weight: 500;
  line-height: 1.7rem;
  font-size: 2.35rem;
  /* color: #cdcbcb; */
  margin: 1.7rem 0 0.8rem 1.85rem;
}

.item-left .coupon-price span {
  font-size: 0.8rem;
}

.item-left .use-text {
  font-size: 0.6rem;
  font-weight: 400;
  /* color: #cdcbcb; */
  line-height: 1.4rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.is-new {
  position: absolute;
  top: 1px;
  left: 7px;
  width: 28px;
  height: 29px;
  z-index: 1;
}

.top-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.coupon-item .item-right {
  z-index: 1;
  color: #CDCBCB;
}

.item-active .item-right {
  color: #333333;
}

.item-right .coupon-title {
  font-size: 0.92rem;
  font-family: PingFang SC;
  font-weight: 550;
  margin: 0.85rem 0 1.1rem -0.3rem;
  line-height: 0.92rem;
}

.item-right .use-tips {
  font-size: 0.78rem;
  font-family: PingFang SC;
  font-weight: 400;
  line-height: 0.78rem;
}

.item-right .validity-period {
  font-size: 0.64rem;
  font-family: PingFang SC;
  font-weight: 400;
  line-height: 1rem;
  margin-top: 0.85rem;
}

.item-footer {
  background: #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 2rem;
  position: relative;
}

.item-footer .show-detail {
  margin-left: 2.8rem;
  z-index: 1;
  line-height: 1.8rem;
  font-weight: 550;
  font-size: 0.78rem;
  color: #CDCBCB;
}

.item-active .show-detail{
  color: #000000;
}

.item-footer .coupon-status {
  margin-right: 1.9rem;
  z-index: 1;
  line-height: 1.8rem;
  width: 3.6rem;
  height: 1.2rem;
  border-radius: 7px;
  font-size: 0.78rem;
  line-height: 1.2rem;
  background: #CDCBCB;
  color: #FFFFFF;
  text-align: center;
}

.item-active .coupon-status {
  color: #000000;
  background: #fad496;
}

.item-footer .bottom-img {
  position: absolute;
  bottom: -1.07rem;
  left: 0;
}

.coupon-item .item-img {
  position: absolute;
  top: 0.92rem;
  right: 0.85rem;
  width: 5.78rem;
  height: 4.57rem;
  z-index: 2;
}

/* 空状态样式 */
.my-coupon .empty-status {
  margin: 0 auto;
  width: 10.5rem;
}

.empty-status .empty-img {
  width: 10.5rem;
  height: 10.5rem;
  margin: 3rem 0;
}

.empty-status .empty-text {
  height: 1rem;
  font-size: 1rem;
  font-weight: 550;
  color: #000000;
  text-align: center;
  line-height: 1rem;
}

/* 查看失效卡 */
.see-invalid {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  height: 1rem;
  font-size: 1rem;
  font-weight: 550;
  color: #bfbfbf;
}
